<!--
  @author xuning
  @date 2019/4/8 18:43
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>录单报表</title>
    <th:block th:replace="common/common :: jscssNew('录单报表')"/>
</head>

<body>

<div class="layui-fluid">
    <blockquote class="layui-elem-quote">
        订单报表&nbsp;&nbsp;>&nbsp;&nbsp;
        <a th:lay-href="|${LIST_URL}|">录单报表</a>
    </blockquote>
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="search-form" method="post" action="" lay-filter="zmn-work-form">
                <div class="layui-form layui-margin-t" th:include="report/ordered/_query :: query "></div>
            </form>
            <table id="zmn-ordered-table" lay-filter="zmn-ordered-table"></table>
        </div>
    </div>
</div>

<script type="text/html" id="totalLine">
    <tr style="color:red;">
        {{# layui.each(d.sort,function(index,item){ }}
        <td data-field="{{item}}" align="center" class="">
            <div class="layui-table-cell ">{{d[item]===undefined?0:d[item]}}</div>
        </td>
        {{# }); }}
        <th class="layui-table-patch">
            <div class="layui-table-cell" style="width: 17px;"></div>
        </th>
    </tr>
</script>
<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>

<script type="text/html" id="help_content">
    <div>
        1、为实时查询 <br/>
        2、计算公式： <br/>
        总单量：除:退款单以外，所有单量 <br/>
        新单汇总：新单不重复+新单重复
        <br/>
        新单：新单＆不重复 <br/>
        返修：返修＆不重复 <br/>
        新单重复：新单＆重复 <br/>
        返修重复：返修＆重复 <br/>
        进行中：结果为:进行中，不含:退款单 <br/>
        弃单：结果为:弃单，不含退款单 <br/>
        失败：结果为:失败，不含退款单 <br/>
        成功：结果为:成功，不含:退款单 <br/>
        弃单率：弃单/总单量 <br/>
        失败率：失败/总单量 <br/>
        成功率：成功/总单量 <br/>
        订单收入：录单时间内，有算账的工单应收总额 <br/>
        3、不支持数据权限 <br/>
        4、固定查询下单平台是:啄木鸟的工单 <br/>
    </div>
</script>
<script src="/static/js/module/report/oms.report.util.js"></script>

<script th:inline="javascript">
    //导出权限
    let hasExport = [[${#authPermit.checkPermit('/zs/oms/report/ordered/list/export.action')}]];
    layui.extend({
        oms_ordered_list: "report/ordered/zmn.oms.ordered.list"
    }).use(['index', 'oms_ordered_list']);
</script>
</body>
</html>
